import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../Home.vue'

Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'Home',
		component: Home,
		children: [{
				path: '/v1',
				name: 'v1',
				component: () => import('../views/v1.vue')
			},
			{
				path: '/v2',
				name: 'v2',
				component: () => import('../views/v2.vue')
			},
			{
				path: '/v3',
				name: 'v3',
				component: () => import('../views/v3.vue')
			},
			{
				path: '/v4',
				name: 'v4',
				component: () => import('../views/v4.vue')
			},
			{
				path: '/v5',
				name: 'v5',
				component: () => import('../views/v5.vue')
			}
		]
	}

]

const router = new VueRouter({
	routes
})

export default router
